<template>
  <div id="token-item">
    <div class="hint" v-if="hintShow">
      <p class="hint-text">
        <slot name="hintEnd">
          结束
        </slot>
      </p>
    </div>
    <div class="content">
      <div class="log-img">
        <slot name="logImg">
          <img :src="img" alt="" />
        </slot>
      </div>
      <div class="text">
        <p class="title">
          <slot name="title">
            PEARL/TRX LP
          </slot>
        </p>
        <p class="msg">
          <slot name="msg">
            存款 PEARL/TRX LP
          </slot>
        </p>
        <p class="msg">
          获取珍珠
        </p>
      </div>
      <div class="link">
        <slot name="link">
          <router-link to="#">
            选择
          </router-link>
        </slot>
      </div>
    </div>
  </div>
</template>

<script>
import img from '@/assets/images/log.svg';
export default {
  props: {
    hintShow: {
      type: Boolean,
      default: true,
    }
  },
  data() {
    return {
      img,
    };
  },
};
</script>

<style lang="scss" scoped>
#token-item {
  width: 290px;
  height: 360px;
  // padding: 24px;
  // box-sizing: border-box;
  border: 1px solid #e2cfd5;
  background: #f0e7ea;
  box-shadow: inset 1px 1px 0 #f7f2f4;
  border-radius: 12px;
  position: relative;
  .hint {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 0;
    right: 0;
    background: url('../../assets/images/hint-end.png') no-repeat center;
    background-size: cover;
    .hint-text {
      color: #fff;
      width: 80px;
      height: 80px;
      font-size: 14px;
      transform: rotate(45deg);
      margin: 0;
      line-height: 50px;
      text-align: center;
    }
  }
  .content {
    padding: 24px;
    text-align: center;
    .log-img {
      width: 80px;
      height: 80px;
      margin: 0 auto;
      text-align: center;
      line-height: 80px;
      background: #f0e7ea;
      box-shadow: inset 4px 4px 8px #e2cfd5, inset -6px -6px 12px #f7f2f4;
      border-radius: 50%;
      img {
        width: 34px;
        height: 34px;
        vertical-align: middle;
      }
    }
    .text {
      .title {
        font-size: 24px;
        color: #5b2639;
        font-weight: 700;
      }
      .msg {
        font-size: 16px;
        color: #80495d;
        line-height: 0.3;
      }
    }
    .link:hover {
      background: #f7f2f4;
    }
    .link {
      width: 240px;
      height: 56px;
      padding: 0 15px;
      box-sizing: border-box;
      border-radius: 12px;
      background-color: #f0e7ea;
      box-shadow: 4px 4px 8px #e2cfd5, -8px -8px 16px #f7f2f4;
      text-align: center;
      line-height: 56px;
      transform: translateY(55px);
      a {
        font-size: 16px;
        font-weight: 700;
        color: #d1004b;
      }
    }
  }
}
</style>
